
   
   
		  <?php form_head("admin/category_add","") ?>
          <?php text_field("category_name","ชื่อ",null,1); ?>
           <?php text_field("unit_name","หน่วยนับ",null,1); ?>
         <?php 
		 $rows =  $this->db->get("meterial_base_categories")->result_array();
		 select_field("cat_base_id","หมวด",$rows,"cat_base_name",0,0,"",1,null,"",2); 
		 ?>
		 <?php 
		 $rows =  $this->db->get("material_types")->result_array();
		 select_field("type_id","ชนิด",$rows,"type_name",0,0,"",1,null,"",2); 
		 ?>
		 <div class="field">
         <div class="left">เป็นวัสดุใช้แล้วหมดไป:</div>
		 	<input style="width:20px;" type="checkbox" name="exhaustible[]" <?php echo set_checkbox('exhaustible[]', '1'); ?> value="1" /> 
		 </div>
          <?php form_footer(); ?>
          
   
   
   
   